package com.lsm.composite;

public class Main {
	public static void main(String[] args) throws Exception {
		Directory root = new Directory("root");
		Directory bin = new Directory("bin");
		Directory etc = new Directory("etc");
		root.add(bin);
		root.add(etc);

		File file1 = new File("file1", 1000);
		File file2 = new File("file2", 2000);

		bin.add(file1);
		etc.add(file2);

		root.printFile();
	}
}
